var report = require("./mysql/report");

exports.article1 = function(req,res){
    res.render("article1",{title:"深入浅出nodejs"});
};

exports.article2 = function(req,res){
    res.render("article2",{title:"nodejs开发指南"});
}
exports.articlen = function(req,res){
    var id = req.query.id;
    report.getAriticleContent(id,function(err,result){
        console.log(err,result);
          res.send(result);
        //res.render("articleConten.ejs");
    });
}